.messagePage {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 16px;
  padding-bottom: 80px; /* 为底部导航留出空间 */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.messageCount {
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.messageList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messageItem {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.messageItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.messageItem.unread {
  border-left: 4px solid #007bff;
}

.messageIcon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.systemIcon {
  color: #ff6b6b;
}

.appointmentIcon {
  color: #20c997;
}

.reportIcon {
  color: #007bff;
}

.paymentIcon {
  color: #ffc107;
}

.messageContent {
  flex: 1;
  min-width: 0;
}

.messageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.messageTitle {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.messageTime {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.messageText {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.unreadBadge {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .messagePage {
    padding: 12px;
  }
  
  .header h2 {
    font-size: 20px;
  }
  
  .messageItem {
    padding: 12px;
    gap: 12px;
  }
  
  .messageIcon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .messageTitle {
    font-size: 15px;
  }
  
  .messageText {
    font-size: 13px;
  }
}
